<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/1/11 0011
 * Time: 下午 2:46
 */

namespace backend\assets;


use common\components\GlobalUrlComponent;
use yii\web\AssetBundle;

class PickerAsset extends AssetBundle
{
    public $baseUrl = '';

    public $css = [
        'plugins/bower_components/clockpicker/dist/jquery-clockpicker.min.css',
        /*
        'plugins/bower_components/bootstrap-daterangepicker/daterangepicker.css',
        'plugins/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css'*/
    ];
    public $js = [
        'plugins/bower_components/clockpicker/dist/jquery-clockpicker.min.js',/*
        'plugins/bower_components/bootstrap-daterangepicker/daterangepicker.js',
        'plugins/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js',
        'plugins/bower_components/bootstrap-datepicker/init.js',*/
        'plugins/bower_components/clockpicker/dist/jquery-clockpicker.init.js',
        'js/laydate/laydate.js',
        'js/laydate/init.js?v=2',
    ];
    public $depends = [
        AppAsset::class
    ];

    public function __construct(array $config = [])
    {
        $this->baseUrl = GlobalUrlComponent::buildStaticUrl('/');

        parent::__construct($config);
    }
}